package apdate

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.wd.common.bean.TalkXqBean
import com.wd.rim.R

class TalkXqApdate (var context: Context,val list:TalkXqBean.Result)
    :RecyclerView.Adapter<TalkXqApdate.ViewHolder>(){
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val inflate = LayoutInflater.from(context).inflate(R.layout.item_talkxq, parent, false)
        return ViewHolder(inflate)
    }



    override fun getItemCount(): Int {
       return list.hotId
    }

    override fun onBindViewHolder(holder: ViewHolder, position: Int) {

    }

    class ViewHolder(itemView:View):RecyclerView.ViewHolder(itemView){
        val name:TextView
        init {
             name = itemView.findViewById<TextView>(R.id.name)
        }
    }




}